<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-bind</title>
</head>
<body>
<div id="app">
  <img v-bind:src="imgUrl" alt="">
  <!--:是v-bind语法糖的方式-->
  <a :href="aHref">京东一下</a>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue',
      imgUrl:"https://img20.360buyimg.com/babel/s590x470_jfs/t1/87143/10/17889/102046/5e8c3918Ec7a49d85/ab211f47055b1b4b.jpg.webp",
      aHref:'https://www.jd.com/'
    }
  });
</script>
</body>
</html>
